home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / xdk_dev.jar / a / InputBuffer.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-12-15  |  1.2 KB  |  79 lines

  1. package a;
  2.  
  3. import java.io.IOException;
  4.  
  5. public abstract class InputBuffer {
  6.    // $FF: renamed from: a int
  7.    int field_0;
  8.    // $FF: renamed from: b int
  9.    int field_1;
  10.    // $FF: renamed from: c int
  11.    int field_2;
  12.    // $FF: renamed from: d a.c
  13.    c field_3 = new c(1);
  14.  
  15.    public void commit() {
  16.       --this.field_0;
  17.    }
  18.  
  19.    public void consume() {
  20.       ++this.field_2;
  21.    }
  22.  
  23.    public abstract void fill(int var1) throws IOException;
  24.  
  25.    public String getLAChars() {
  26.       StringBuffer var1 = new StringBuffer();
  27.  
  28.       for(int var2 = this.field_1; var2 < this.field_3.d; ++var2) {
  29.          var1.append(this.field_3.elementAt(var2));
  30.       }
  31.  
  32.       return var1.toString();
  33.    }
  34.  
  35.    public String getMarkedChars() {
  36.       StringBuffer var1 = new StringBuffer();
  37.  
  38.       for(int var2 = 0; var2 < this.field_1; ++var2) {
  39.          var1.append(this.field_3.elementAt(var2));
  40.       }
  41.  
  42.       return var1.toString();
  43.    }
  44.  
  45.    public boolean isMarked() {
  46.       return this.field_0 != 0;
  47.    }
  48.  
  49.    // $FF: renamed from: LA (int) char
  50.    public char method_0(int var1) throws IOException {
  51.       this.fill(var1);
  52.       return this.field_3.elementAt(this.field_1 + var1 - 1);
  53.    }
  54.  
  55.    public int mark() {
  56.       this.method_1();
  57.       ++this.field_0;
  58.       return this.field_1;
  59.    }
  60.  
  61.    public void rewind(int var1) {
  62.       this.method_1();
  63.       this.field_1 = var1;
  64.       --this.field_0;
  65.    }
  66.  
  67.    // $FF: renamed from: a () void
  68.    protected void method_1() {
  69.       for(; this.field_2 > 0; --this.field_2) {
  70.          if (this.field_0 > 0) {
  71.             ++this.field_1;
  72.          } else {
  73.             this.field_3.removeFirst();
  74.          }
  75.       }
  76.  
  77.    }
  78. }
  79.